package com.fgxia.admin.service;

import com.ruoyi.business.domain.SiteInfo;
import com.ruoyi.business.domain.bo.SiteInfoBo;
import com.ruoyi.business.domain.vo.SiteInfoVo;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;

/**
 * 地址信息Service接口
 *
 * @author yyt
 * @date 2024-04-20
 */
public interface IAdminSiteService {
    /**
     * 新增地址信息
     */
    Boolean insertByBo(SiteInfoBo bo);

    /**
     * 修改地址信息
     */
    Boolean updateByBo(SiteInfoBo bo);

    TableDataInfo<SiteInfoVo> selectVoList(SiteInfo siteInfo, PageQuery pageQuery);

    Boolean deleteById(Long siteId);

    /**
     * 设为默认
     *
     * @param siteId
     * @param userId
     * @return
     */
    Boolean setDefault(Long siteId, Long userId);

    /**
     * 获取默认地址
     * @param userId
     * @return
     */
    SiteInfoVo selectDefault(Long userId);
}
